package com.xyz.phone_store_demo.repository;

import com.xyz.phone_store_demo.entity.PhoneCategory;
import org.springframework.data.jpa.repository.JpaRepository;

//JpaRepository<_,_>里面的两个泛型：1.实体类类型；2.主键类型
public interface PhoneCategoryRepository extends JpaRepository<PhoneCategory,Integer> {
    public PhoneCategory findByCategoryType(Integer cateGoryType);
}
